<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-07 19:30:43
 * @LastEditTime: 2022-02-23 00:28:36
 * @LastEditors: CHINAKAIYUAN
 * @Description: 
 */

namespace App\Http\Properties\BaseData;

use OpenApi\Annotations\Property;
use OpenApi\Annotations\Schema;
use App\Http\Properties\Properties;
use App\Http\Properties\System\TableProperties;

/**
 *
 * @Schema(
 *     title="物料属性",
 *     description="物料属性",
 * )
 *
 * @package App\Http\Properties\BaseData
 */
class MaterialProperties extends Properties
{
    /**
     * @Property(
     *     type="integer",
     *     description="ID"
     * )
     *
     * @var int
     */
    public $id;
    // /**
    //  * @Property(
    //  *     type="integer",
    //  *     description="表单"
    //  * )
    //  *
    //  * @var array
    //  */
    // public $tb;
    // public static function tb()
    // {
    //     return  TableProperties::class;
    // }
    /**
     * @Property(
     *     type="string",
     *     description="品名"
     * )
     *
     * @var string
     */
    public $name;
    /**
     * @Property(
     *     type="string",
     *     description="产品代码"
     * )
     *
     * @var string
     */
    public $code;
    /**
     * @Property(
     *     type="string",
     *     description="规格"
     * )
     *
     * @var string
     */
    public $spec;
    /**
     * @Property(
     *     type="string",
     *     description="类型"
     * )
     *
     * @var string
     */
    public $categoryName;
    /**
     * @Property(
     *     type="string",
     *     description="成分"
     * )
     *
     * @var string
     */
    public $comp;

    /**
     * @Property(
     *     type="string",
     *     description="打包自动腰带配方"
     * )
     *
     * @var string
     */
    public $autopack;
    /**
     * @Property(
     *     type="string",
     *     description="单位"
     * )
     *
     * @var string
     */
    public $unitName;
}
